package com.lechuang.goods.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Data
@Accessors(chain = true)
@Schema(description = "新增、修改商品，spu请求实体")
public class GoodsSpuSaveDTO implements Serializable {

    @Schema(description = "主键id")
    private Long id;

    @Schema(description = "商户id")
    private Long tenantId;

    @Schema(description = "商户名称")
    private String tenantName;

    @Schema(description = "分类id")
    private Long categoryId;

    @Schema(description = "商品名称")
    private String name;

    @Schema(description = "商品标题")
    private String title;

    @Schema(description = "运费模版id")
    private Long freightTemplateId;

    @Schema(description = "属性")
    private String attribute;

    @Schema(description = "商品单数")
    private Integer goodsNum;

    @Schema(description = "上下架状态，1：上架，2：下架")
    private Integer goodsStatus;

    @Schema(description = "商品banner图片")
    private String goodsBannerImg;

    @Schema(description = "商品详情图片")
    private String goodsDetailImg;

    @Schema(description = "商品类型，1：单品，2：套装")
    private Integer goodsType;

    @Schema(description = "sku集合")
    List<GoodsSkuSaveDTO> skuSaveDTOList;
}
